<?php

$httpType = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) ? 'https://' : 'http://';


return [
	// 公共样式
    'view_replace_str'  =>  [
        '__ROOT__'	    =>	getenv('APP_OSS') ? $httpType . getenv('OSS_DOMAIN') : SITE_PATH,
    	'__PUBLIC__'	=>	SITE_PATH.'/public/',
    	'__STYLE__'		=>	SITE_PATH.'/public/style/admin/',
	    '__CSS__'		=>	SITE_PATH.'/public/style/admin/css/',
        '__JS__'		=>	SITE_PATH.'/public/style/admin/js/', 
        '__IMG__'		=>	SITE_PATH.'/public/style/admin/img/', 
        '__PLUGINS__'	=>	SITE_PATH.'/public/style/admin/plugins/',
        '__IMAGES__'	=>	SITE_PATH.'/public/uploads/',
        '__IMGERROE__'	=>	SITE_PATH.'/public/style/admin/img/images.jpg',
        '__IJS__'		=>	SITE_PATH.'/public/style/index/js/',
        '__ICSS__'		=>	SITE_PATH.'/public/style/index/css/',
        '__IP__'	    =>	SITE_PATH.'/public/style/index/plugins/',
        '__PA__'        =>  SITE_PATH.'/disk',
        '__LAYUI__'     =>  SITE_PATH.'/public/style/admin/layui/',
	],
	// 动画class
	'adminClass'		=>	[
		'main'			=>	'    ',
		'top'			=>	'  ',
		'left'			=>	'   ',
		'right'			=>	'   ',
	],
	// 第三方接口
	'appkey'			=>	[
		'ip'			=>	'51601367eff4ff5de64633ff127b75e8'		// 接口地址：https://www.juhe.cn/docs/api/id/1
	],
	//分页配置
    'paginate'               => [
        'type'      => 'BootstrapPage',
        'var_page'  => 'page',
        'list_rows' => 20,
    ],
    'url_route_on'           => false,
    
    // 字段状态
    'field' => [
        'paymethod' => [
            0 => '未发起支付',
            1 => '余额',
            2 => '支付宝',
            3 => '微信'
        ],
        'paystate' => [
            -1 => '已退款',
            0 => '待付款',
            1 => '已付款'
        ],
        'orderstate' => [
            0 => '正常',
            -1 => '订单关闭',
            -2 => '商家关闭',
            -3 => '用户关闭',
            -4 => '售后关闭'
        ],
        'orderstatus' => [
            -1 => '未正常完成',
            0 => '待服务',
            1 => '商家设置已完成',
            2 => '服务完成'
        ]
    ]
];
